package com.yanfan.energy.domain;


import java.io.Serializable;
import java.util.Date;

/**
 * 能源采购表(PurchasingEnergys)实体类
 *
 * @author makejava
 * @since 2022-10-24 10:36:44
 */

public class PurchasingEnergys implements Serializable {
    private static final long serialVersionUID = -89919463575644691L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 车间id
     */
    private Integer workShopId;
    /**
     * 供应商id
     */
    private Integer supplierId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 能源单价
     */
    private Double price;
    /**
     * 能源总价
     */
    private Double countPrice;
    /**
     * 能耗类型
     */
    private Integer type;
    /**
     * 能耗名称
     */
    private String typeName;
    /**
     * 采购数量
     */
    private Integer purchaseNumber;
    /**
     * 能耗单位
     */
    private String unit;
    /**
     * 采购时间
     */
    private String purchaseDate;
    /**
     * 负责人
     */
    private String principal;
    /**
     * 联系方式
     */
    private String telephone;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */
    private Date createdDate;
    /**
     * 修改时间
     */
    private Date lastModifiedDate;
    /**
     * 供应商信息
     *
     * @author caijinkang
     * @date 2022/10/24 10:52
     * @return java.lang.Integer
     */
    private Supplier supplier;
    /**
     * 楼栋id
     *
     * @author caijinkang
     * @date 2023/3/29 16:42
     * @param null
     * @return null
     */
    private Integer buildingId;
    /**
     * 楼层id
     *
     * @author caijinkang
     * @date 2023/3/29 16:42
     * @param null
     * @return null
     */
    private Integer floorId;
    /**
     * 车间id
     *
     * @author caijinkang
     * @date 2023/3/29 16:42
     * @param null
     * @return null
     */
    private Integer workshopId;

    public PurchasingEnergys(Integer id, Integer workShopId, Integer supplierId, Integer userId, Double price, Double countPrice, Integer type, String typeName, Integer purchaseNumber, String unit, String purchaseDate, String principal, String telephone, String createdBy, Date createdDate, Date lastModifiedDate, Supplier supplier) {
        this.id = id;
        this.workShopId = workShopId;
        this.supplierId = supplierId;
        this.userId = userId;
        this.price = price;
        this.countPrice = countPrice;
        this.type = type;
        this.typeName = typeName;
        this.purchaseNumber = purchaseNumber;
        this.unit = unit;
        this.purchaseDate = purchaseDate;
        this.principal = principal;
        this.telephone = telephone;
        this.createdBy = createdBy;
        this.createdDate = createdDate;
        this.lastModifiedDate = lastModifiedDate;
        this.supplier = supplier;
    }

    public PurchasingEnergys() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWorkShopId() {
        return workShopId;
    }

    public void setWorkShopId(Integer workShopId) {
        this.workShopId = workShopId;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getCountPrice() {
        return countPrice;
    }

    public void setCountPrice(Double countPrice) {
        this.countPrice = countPrice;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getPurchaseNumber() {
        return purchaseNumber;
    }

    public void setPurchaseNumber(Integer purchaseNumber) {
        this.purchaseNumber = purchaseNumber;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Integer workshopId) {
        this.workshopId = workshopId;
    }

    @Override
    public String toString() {
        return "PurchasingEnergys{" + "id=" + id + ", workShopId=" + workShopId + ", supplierId=" + supplierId + ", userId=" + userId + ", price=" + price + ", countPrice=" + countPrice + ", type=" + type + ", typeName='" + typeName + '\'' + ", purchaseNumber=" + purchaseNumber + ", unit='" + unit + '\'' + ", purchaseDate='" + purchaseDate + '\'' + ", principal='" + principal + '\'' + ", telephone='" + telephone + '\'' + ", createdBy='" + createdBy + '\'' + ", createdDate=" + createdDate + ", lastModifiedDate=" + lastModifiedDate + ", supplier=" + supplier + '}';
    }
}


